﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopMeal : BaseObject
    {
        //begin
        public TopMeal(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _MealId;
        [Size(SizeAttribute.Unlimited)]
        public string MealId
        {
            get
            {
                return _MealId;
            }
            set
            {
                SetPropertyValue("MealId", ref _MealId, value);
            }
        }
        private string _MealName;
        [Size(SizeAttribute.Unlimited)]
        public string MealName
        {
            get
            {
                return _MealName;
            }
            set
            {
                SetPropertyValue("MealName", ref _MealName, value);
            }
        }
        private decimal _MealPrice;
        public decimal MealPrice
        {
            get
            {
                return _MealPrice;
            }
            set
            {
                SetPropertyValue("MealPrice", ref _MealPrice, value);
            }
        }
        private string _ItemList;
        [Size(SizeAttribute.Unlimited)]
        public string ItemList
        {
            get
            {
                return _ItemList;
            }
            set
            {
                SetPropertyValue("ItemList", ref _ItemList, value);
            }
        }
        private string _PostageId;
        [Size(SizeAttribute.Unlimited)]
        public string PostageId
        {
            get
            {
                return _PostageId;
            }
            set
            {
                SetPropertyValue("PostageId", ref _PostageId, value);
            }
        }
        private string _MealMemo;
        [Size(SizeAttribute.Unlimited)]
        public string MealMemo
        {
            get
            {
                return _MealMemo;
            }
            set
            {
                SetPropertyValue("MealMemo", ref _MealMemo, value);
            }
        }
        private string _Status;
        [Size(SizeAttribute.Unlimited)]
        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        //end
    }
}
